<template>
   <div class="common-layout">
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside width="200px">Aside</el-aside>
        <el-main>Main</el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import { RouterLink } from "vue-router"
// 导入封装的接口方法
import * as demo from "@/api/demo.js"

// 调用接口方法
demo.loginAPI()

</script>

<style  scoped lang="less">
.common-layout{
    width: 100%;
    height: 100%;
    .el-container{
        height: 100%;
        .el-header{
            background-color: #0fa;
        }
        .el-aside{
            background-color: #eee;

        }
        .el-main{
            background-color: #fa0;

        }
    }
}
</style>